package com.example.springbootdemo.autowired.custompkg;

import com.example.springbootdemo.autowired.CustomAutowired;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Test1 {

//    @Autowired
    @CustomAutowired
    private Test2 test2;

    public void test1() {
        System.out.println("test1");
        test2.test2();
    }
}
